﻿using UnityEngine;
using System.Collections;

public class ButtonExit : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnMouseEnter()
	{
		//gameObject.renderer.material.color = Color(0, 0, 0, 0.5);
		gameObject.renderer.material.color = Color.blue;
	}
	
	void OnMouseExit()
	{
		//gameObject.renderer.material.color = Color(1, 1, 1, 0.5);
		gameObject.renderer.material.color = Color.white;
		
	}
	
	void OnMouseUp()
	{
		Application.Quit();
	}

}
